<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<title>申请推介</title>
<style type="text/css">
body{margin:0px; background-color:#f5f5f5; font-family:'微软雅黑';}
div,span,p,a,h4,h3,ul,li{margin:0px; padding:0px; list-style:none; overflow:hidden; font-weight:normal;}
a{color:#666; text-decoration:none;}
.tjie_lcheng{width:100%; background-color:#f5f5f5;}
.tjielc_w{margin:20px;}
.tjie_lcheng h3{text-align:center; font-weight:bold; font-size:30px; color:#c50d0d; letter-spacing:4px; height:50px; line-height:50px; margin-bottom:12px;}
.tjie_lcheng li{clear:both; height:42px; line-height:42px;  font-size:18px; padding:12px 0px;}
.tjie_lcheng li label,.input,span{display:block; float:left;}
.tjie_lcheng li label{width:105px; text-align:right;}
.tjie_lcheng li .input{width:945px; height:22px; background-color:#e7e7e7; line-height:22px; padding:8px 10px; font-size:15px; color:#666; font-weight:bold; border-radius:3px; border:solid 1px #ccc; margin-top:6px;}
.tjie_lcheng li.zhuyi{color:#c50d0d; font-size:16px; height:145px; line-height:28px;}
.tjie_lcheng li.zhuyi span{margin-left:12px;}
.tjie_lcheng li.zhuyi span.checkbox{clear:both; margin-left:114px; height:32px; line-height:32px; color:#666;}
.tjie_lcheng li .submt{width:140px; text-align:center; font-size:18px; color:#fff; background-color:#1fcd98; border:none; height:40px; line-height:40px; font-weight:bold; border-radius:20px;}
.tjie_lcheng li.smt{text-align:center;}
.tjie_lcheng li.liyou{height:115px;}
.tjie_lcheng li.liyou textarea{height:90px; line-height:24px;}
</style>
<script src="http://www.hrtv.cn/templets/default/js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
	$(function(){
		var systems ={
			wins : false,
			macs : false,
			xlls : false
		};
		var p1 = navigator.platform;
		systems.wins = p1.indexOf("Win") == 0;
		systems.macs = p1.indexOf("Mac") == 0;
		systems.x11s = (p1 == "X11") || (p1.indexOf("Linux") == 0);
		if(systems.wins||systems.macs||systems.xlls){
			//document.write("PC");
		}else{
			$(".tjie_lcheng li").css({"height":"64px","line-height":"28px","padding":"10px 0px"});
			$(".tjie_lcheng li .input").css({"width":"92%"});
			$(".tjie_lcheng li label").css({"text-align":"left"});
			$(".tjie_lcheng li.liyou").css({"height":"115px"});
			$(".tjie_lcheng li.liyou textarea").css({"height":"70px"});
			$(".tjie_lcheng li.zhuyi").css({"margin-left":"-7px","margin-top":"-13px","height":"174px","line-height":"24px"});
			$(".tjie_lcheng li.zhuyi span.checkbox").css({"margin-left":"10px"});
		}

		function checkverif(){
			var apply_unit 		= $("input[name='apply_unit']").val();
			var apply_pepole	= $("input[name='apply_pepole']").val();
			var apply_tel 		= $("input[name='apply_tel']").val();
			var textarea 		= $("textarea").val();

			if($("input[name='apply_isagree']").is(':checked')) {
				if($.trim(apply_unit) == ''){
					alert("申请单位不能为空！");
					return false;
				}
				if($.trim(apply_pepole) == ''){
					alert("申请人不能为空！");
					return false;
				}
				if($.trim(apply_tel) == ''){
					alert("联系电话不能为空！");
					return false;
				}
				if($.trim(textarea) == ''){
					alert("申请理由不能为空！");
					return false;
				}
			}else{
				alert("请同意注意事项");
				return false;
			}
			$("form[name='form1']").submit();
		}
		$("input[name='submt']").click(function(){
			checkverif();
		})
	})
</script>
</head>

<body>
<div class="tjie_lcheng">
	<div class="tjielc_w">
		<h3>申请推介</h3>
		<form action="{:U('Apfor/applypop')}" name="form1" id="form1" method="post">
			<ul>
				<li>
					<label>申请单位：</label>
					<input class="input" type="text" name="apply_unit" placeholder="申请单位">
				</li>
				<li>
					<label>申请人：</label>
					<input class="input" type="text" name="apply_pepole" placeholder="申请人">
				</li>
				<li>
					<label>联系电话：</label>
					<input class="input" type="text" name="apply_tel" placeholder="手机或座机">
				</li>
				<li>
					<label>电子邮箱：</label>
					<input class="input" type="text" name="apply_email" placeholder="电子邮箱">
				</li>
				<li class="liyou">
					<label>申请理由：</label>
					<textarea class="input" name="apply_reason" placeholder="申请理由"></textarea>
				</li>
				<li class="zhuyi">
					<label>&nbsp;</label>
                            <span>
                                注意事项：<br>
                                ①申请单位须为县区级以上的政府。<br>
                                ②申请理由请详细填写。<br>
                                ③申请成功后华人频道栏目组三日内会有专人与您联系，请正确填写联系方式。
                            </span>
					<span class="checkbox"><input type="checkbox" name="apply_isagree" value="1"> 同意</span>
				</li>
				<li class="smt">
					<if condition="$Think.get.sussce eq 'ok'">
						<b style="color: #f00; font-weight: normal; font-size: 14px; display: block; clear: both; text-align: center; line-height: 24px;">申请提交成功</b>
					</if>
					<if condition="$Think.get.sussce eq 'no'">
						<b style="color: #f00; font-weight: normal; font-size: 14px; display: block; clear: both; text-align: center; line-height: 24px;">申请提交失败</b>
					</if>
					<input class="submt" type="button" name="submt" value="提交申请">
				</li>
			</ul>
		</form>
	</div>
</div>
</body>
</html>
